const { override, fixBabelImports, addWebpackAlias } = require('customize-cra')
const path = require('path')

module.exports = override(
	// 导入包
	fixBabelImports('import', {
		// 包名
		libraryName: 'antd',
		// 地址
		libraryDirectory: 'es',
		// 样式
		style: 'css'
	}),
	// 配置别名
	addWebpackAlias({
		"@": path.resolve(__dirname, 'src')
	})
)